define(['jquery', 'bootstrap', 'backend', 'form'], function ($, undefined, Backend, Form) {

    var Controller = {
        preview: function () {
            $(document).on("change", "#c-env", function () {
                var value = $(this).val();
                console.log('env', value);
                window.location.href = window.location.href + '&env=' + value;
            });

            // Controller.api.bindevent();
        },
        api: {
            bindevent: function () {
                Form.api.bindevent($("form[role=form]"));
            },
            formatter: {  // 渲染的方法
            },
            events: { // 绑定事件的方法
            }
        }
    };
    return Controller;
});
